package fun.werfamily.wf.order.core.infrastructure.mapper;


import fun.werfamily.wf.order.core.infrastructure.dataobject.OrderGoodsDO;

import java.util.List;

public interface OrderGoodsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(OrderGoodsDO record);

    int insertSelective(OrderGoodsDO record);

    OrderGoodsDO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OrderGoodsDO record);

    int updateByPrimaryKey(OrderGoodsDO record);

    /**
     * 根据一级单号批量查询
     * @param orderNos
     * @return
     */
    List<OrderGoodsDO> listByOrderNos(List<String> orderNos);
}